﻿using Dapper_Core.Basic;
using Dapper_Core.Table;
using System;
using System.Collections.Generic;
using System.Text;

namespace Dapper_Core.DAL.Impl
{
    public class AbstractSyncDetail : ISyncDetail
    {
        protected object fromPropertyValue ;
        public virtual void SyncDetail(BaseModel model, Sys_TableRelation relation)
        {
            object value = model.GetFieldValue(relation.FromProperty);
            if (value.IsEmpty() || relation.FromDetailProperty.IsEmpty()) return;
            fromPropertyValue = value;
        }
    }
}
